package cn.yunyichina.provider.clinic.hisiface.vo;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.BeanUtils;

import cn.yunyichina.provider.clinic.others.hisiface.MZFee;
import cn.yunyichina.utils.convert.ObjectParser;

public class ResponseGetMzfeelistVo {

	private String mzFeeId;
	
	private String mzBillId;
	
	private String recipeType;
	
	private String recipeId;
	
	private String createdTime;
	
	private String deptCode;
	
	private String deptName;
	
	private String doctorCode;
	
	private String doctorName;
	
	private Integer payType;
	
	private Integer canUseInsurance;
	
	private Integer payAmount;
	
	private Integer totalAmount;

	public String getMzFeeId() {
		return mzFeeId;
	}

	public void setMzFeeId(String mzFeeId) {
		this.mzFeeId = mzFeeId;
	}

	public String getMzBillId() {
		return mzBillId;
	}

	public void setMzBillId(String mzBillId) {
		this.mzBillId = mzBillId;
	}

	public String getRecipeType() {
		return recipeType;
	}

	public void setRecipeType(String recipeType) {
		this.recipeType = recipeType;
	}

	public String getRecipeId() {
		return recipeId;
	}

	public void setRecipeId(String recipeId) {
		this.recipeId = recipeId;
	}

	public String getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(String createdTime) {
		this.createdTime = createdTime;
	}

	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getDoctorCode() {
		return doctorCode;
	}

	public void setDoctorCode(String doctorCode) {
		this.doctorCode = doctorCode;
	}

	public String getDoctorName() {
		return doctorName;
	}

	public void setDoctorName(String doctorName) {
		this.doctorName = doctorName;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public Integer getCanUseInsurance() {
		return canUseInsurance;
	}

	public void setCanUseInsurance(Integer canUseInsurance) {
		this.canUseInsurance = canUseInsurance;
	}

	public Integer getPayAmount() {
		return payAmount;
	}

	public void setPayAmount(Integer payAmount) {
		this.payAmount = payAmount;
	}

	public Integer getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(Integer totalAmount) {
		this.totalAmount = totalAmount;
	}
	
			
    public ResponseGetMzfeelistVo(){
    	
    }
    
    public List<ResponseGetMzfeelistVo> convertMzFeeListToVo(List<MZFee> list){
    	
    	List<ResponseGetMzfeelistVo> responseVos=new ArrayList<ResponseGetMzfeelistVo>();
    	
    	for(MZFee fee : list){
    		ResponseGetMzfeelistVo vo=new ResponseGetMzfeelistVo();
    		BeanUtils.copyProperties(fee, vo,"time","payType","canUseInsurance","payAmout","totalAmout");
    		vo.setCreatedTime(fee.getTime());
    		vo.setCanUseInsurance(ObjectParser.toInteger(fee.getCanUseInsurance()));
    		vo.setPayType(ObjectParser.toInteger(fee.getPayType()));
    		vo.setPayAmount(ObjectParser.toInteger(fee.getPayAmout()));
    		vo.setTotalAmount(ObjectParser.toInteger(fee.getTotalAmout()));
    		responseVos.add(vo);
    	}
    	
    	return responseVos;
    }
}
